﻿<Window x:Class="LaunchMeNot.WinChooseEntryType"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:l49="clr-namespace:Lime49;assembly=Lime49"
    xmlns:lex="http://schemas.root-project.org/xaml/presentation"
    l49:WindowService.EscapeClosesWindow="True"
    Title="{lex:LocText LaunchMeNot.Core:Strings:SelectStartupType}"
    MinHeight="60" MinWidth="70" SizeToContent="WidthAndHeight"
    FocusManager.FocusedElement="{Binding ElementName=btnLaunchMeNot}"
    WindowStartupLocation="CenterOwner" x:Name="root"
    Style="{StaticResource {x:Type Window}}" Icon="pack://application:,,,/Resources/icon.ico">
    <Window.CommandBindings>
        <CommandBinding Command="ApplicationCommands.Close" Executed="CloseWindow"/>
        <CommandBinding Command="ApplicationCommands.Save" Executed="SaveSelection"/>
    </Window.CommandBindings>
    <StackPanel Margin="6">
        <TextBlock x:Name="txtMessage" HorizontalAlignment="Stretch" Margin="0,0,0,4" TextTrimming="CharacterEllipsis" TextWrapping="Wrap" Text="How should these entries be managed?"/>
        
        <Button IsDefault="True" Command="ApplicationCommands.Save" CommandParameter="LaunchMeNot" Content="LaunchMeNot" HorizontalAlignment="Stretch"/>
        <Button Command="ApplicationCommands.Save" CommandParameter="CurrentUserStartup" Content="{lex:LocText LaunchMeNot.Core:Strings:CurrentUserStartupFolder}" HorizontalAlignment="Stretch"/>
        <Button Command="ApplicationCommands.Save" CommandParameter="AllUsersStartup" Content="{lex:LocText LaunchMeNot.Core:Strings:AllUsersStartupFolder}" HorizontalAlignment="Stretch"/>
        <Button Command="ApplicationCommands.Save" CommandParameter="CurrentUserRun" Content="{lex:LocText LaunchMeNot.Core:Strings:RegistryCurrentUserRun}" HorizontalAlignment="Stretch"/>
        <Button Command="ApplicationCommands.Save" CommandParameter="LocalMachineRun" Content="{lex:LocText LaunchMeNot.Core:Strings:RegistryLocalMachineRun}" HorizontalAlignment="Stretch"/>
        
        <Button IsCancel="True" Command="ApplicationCommands.Close" Content="{lex:LocText LaunchMeNot.Core:Strings:Cancel}" HorizontalAlignment="Stretch" Margin="2,10,2,2"/>
    </StackPanel>
</Window>
